package com.chorye.mongo.dao.primary;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Company: 北京XXXX有限公司
 * @Author JiangYy
 * @Title: PrimaryStudent
 * @Description: TODO
 * @Date 2018/12/24 13:33
 */
@Data
@Document(collection = "first_students")
public class PrimaryStudent implements Serializable {

    /**
     * id
     */
    @Id
    private Integer id;
    /**
     * 姓名
     */
    private String name;
    /**
     * 生活费
     */
    private BigDecimal salary;
    /**
     * 生日
     */
    private Date birth;

}
